#ifndef DATAVIEW_H
#define DATAVIEW_H

#include <QDockWidget>
#include <QDataStream>

#include "datamodel.h"

namespace Ui {
class InsightView;
}

class QGroupBox;
class QRadioButton;

class InsightView : public QDockWidget
{
    Q_OBJECT

public:
    explicit InsightView(QWidget *parent = 0);
    ~InsightView();
    void ImsightSettingchaged(void);

    void setData(const QByteArray& array);
    QDataStream::ByteOrder byteOrder(void);

private:
    Ui::InsightView *ui;

    QGroupBox* byteOrderGroup;
    QRadioButton* littleEndian;
    QRadioButton* bigEndian;
    DataModel model;

    // QObject interface
public:
    bool eventFilter(QObject* object, QEvent* event);
    void setTablecolumnWidth(void);
};

#endif // DATAVIEW_H
